<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@page import="com.lmpop.trade.ti_evaluate.*" %>

  <% 

  	String order_no="";
  	if(request.getParameter("order_no")!=null) order_no = request.getParameter("order_no");
 
    
    Ti_evaluateInfo  ti_evaluateInfo = new Ti_evaluateInfo();  
    
	Map cMap = new Hashtable();
	cMap.put("order_no",order_no);
	Hashtable map = ti_evaluateInfo.getOneEvaluate(cMap);
    
    String content="",info_level="",reply_content="",reply_date="",same_num="",service_num="",speed_num="";
    if(map.get("content")!=null) content = map.get("content").toString();
    if(map.get("info_level")!=null) info_level = map.get("info_level").toString();
  	if(map.get("reply_content")!=null) reply_content = map.get("reply_content").toString();
    if(map.get("reply_date")!=null) reply_date = map.get("reply_date").toString();
    if(reply_date.length()>19)
    {
       reply_date = reply_date.substring(0,19);    
    }  	 
    if(map.get("same_num")!=null) same_num = map.get("same_num").toString();
    if(map.get("service_num")!=null) service_num = map.get("service_num").toString();
    if(map.get("speed_num")!=null) speed_num = map.get("speed_num").toString();
   	

  %>
 
   

	<script src='rating/jquery.js' type="text/javascript"></script>
	<script src='rating/documentation.js' type="text/javascript"></script>
  <link href='rating/documentation.css' type="text/css" rel="stylesheet"/>
  <!--// plugin-specific resources //-->
<script type="text/javascript" src="js/kissy-min.js" ></script>
 <link href='css/starscore.css' type="text/css" rel="stylesheet"/>
  <script src="js_comment.js"></script>
	
   
 <form action="/doTradeReg.do" method="post" name="addForm">

<div class="f-right">
    <table width="100%"  cellpadding="0" cellspacing="0" class="table_main">
      <tr>
        <th width="5%" height="40" align="center"><img src="/program/member/index/images/icon1.gif" /></th>
        <th width="75%"><h3></a>交易评价查看</h3></th>

      </tr>
    </table>


    <DIV class="focus-area-setTab">
      <DIV class="focus-area-setTab-menu">
        <DIV class="clear"></DIV>
      </DIV>
      <DIV class="focus-area-setTab-content">
        <DIV id=con_one_1 >
          <table width="100%" border="0" cellspacing="0"  cellpadding="0" >
            <tr >
              <td height="100" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="font-size:12px;">
                  <tr>
                    <td height="17" colspan="2" class="art_col">&nbsp;</td>
                  </tr>
                  <tr>
                    <td width="20%" height="38" class="art_col" >所属订单号</td>
                    <td>
                    <%=order_no%>
                     </td>
                  </tr>
                  <tr>
                    <td height="38" class="art_col">评价内容</td>
                    <td>
				              <%=content%>
                    </td>
                  </tr>
                 
                   <tr>
                    <td height="38" class="art_col">评价级别</td>
                    <td>
					          <%if(info_level.equals("0"))out.print("好评");%> 
										<%if(info_level.equals("1"))out.print("中评");%>
										<%if(info_level.equals("2"))out.print("差评");%> 
						   
					           </td>
                  </tr>
                    <td height="17" colspan="2" class="art_col">
                    	
                    <div style="border-top:1px dashed #cccccc;height: 1px;overflow:hidden;"></div>                     	
                    	
                    	</td>
                  </tr>

                </table>
				</td>
            </tr>
		
			<tr>
				<td>
  <div id="J_Rating" class="rating-bd">

        <div class="shop-rating">
            <span class="title">商品与描述相符:</span>
            <ul class="rating-level">
                <li><a href="#" data-star-value="1" class="one-star">1</a></li>
                <li><a href="#" data-star-value="2" class="two-stars">2</a></li>
                <li><a href="#" data-star-value="3" class="three-stars">3</a></li>
                <li><a href="#" data-star-value="4" class="four-stars">4</a></li>
                <li><a href="#" data-star-value="5" class="five-stars">5</a></li>
            </ul>
            <span class="result"></span>
            <input type="hidden" size="2" value="" id="same_num" name="same_num" />
			<input type="hidden" size="2" value="<%=same_num%>" name="same_num_tem" />

        </div>

        <div class="shop-rating">
            <span class="title">卖家的服务态度:</span>
            <ul class="rating-level">
                <li><a href="#" data-star-value="1" class="one-star">1</a></li>
                <li><a href="#" data-star-value="2" class="two-stars">2</a></li>
                <li><a href="#" data-star-value="3" class="three-stars">3</a></li>

                <li><a href="#" data-star-value="4" class="four-stars">4</a></li>
                <li><a href="#" data-star-value="5" class="five-stars">5</a></li>
            </ul>
            <span class="result"></span>
            <input type="hidden" size="2" value="" id="service_num" name="service_num" />
			<input type="hidden" size="2" value="<%=same_num%>" name="service_num_tem" />
        </div>

        <div class="shop-rating">

            <span class="title">卖家发货的速度:</span>
            <ul class="rating-level">
                <li><a href="###" data-star-value="1" class="one-star">1</a></li>
                <li><a href="###" data-star-value="2" class="two-stars">2</a></li>
                <li><a href="###" data-star-value="3" class="three-stars">3</a></li>
                <li><a href="###" data-star-value="4" class="four-stars">4</a></li>
                <li><a href="###" data-star-value="5" class="five-stars">5</a></li>
            </ul>
            <span class="result"></span>
            <input type="hidden" size="2" value="" id="speed_num" name = "speed_num" />
			<input type="hidden" size="2" value="<%=same_num%>" name="speed_num_tem" />
        </div>
        <div class="rating-pop-tip hide"></div>
        <!-- <p class="msg"><span class="error"></span></p> -->
    </div>

    <script src="js/starscore.js"></script>
    <script>
        KISSY.ready(function(S) {
            new S.StarRating('#J_Rating',
                {reason: [['完全不一样', '差别很大', '一般般', '差不多', '完全一致'],
                            ['太恶劣了', '不好', '一般般', '不错', '非常好'],
                            ['太慢了', '有点小慢', '一般般', '挺快的', '超级快!']],
                level: ['非常不满意','很不满意','一般','很满意','非常满意'],
				enable: false
				}
            );

        });
    </script>				
				</td>
			</tr>	
			
	          <tr>
	   
                    <td height="17" colspan="2" class="art_col" style="padding-top:10px;padding-bottom:10px">
                    	<%if(reply_content.trim().equals("")){%>
                       <font color="#666666">店主尚未回复</font>                 	
                    	<%}else{%>
                    	  <font color="#666666">店主于&nbsp;<%=reply_date%>&nbsp;回复:&nbsp;&nbsp;<%=reply_content%></font>   
                    	<%}%>
                    	</td>
                  </tr>			
          </table>
          <table width="100%" border="0" cellspacing="0" cellpadding="0" >
            <tr>
              <td height="50" align="center">
             
               <input type="button" name="Submit2" value=" 返 回 " class="button2" onclick="window.location.href='index.jsp?menu_id=<%=menu_id%>';">
              </td>
            </tr>
          </table>
        </DIV>
      
      </DIV>
    </DIV>
  </div>
</div>
 
</form>
